package com.chris.blog.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.chris.blog.entity.po.DownloadPO;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface DownloadDao extends BaseMapper<DownloadPO> {
    /**
     * insert record to table
     * @param record the record
     * @return insert count
     */
    int insert(DownloadPO record);

    /**
     * insert record to table selective
     * @param record the record
     * @return insert count
     */
    int insertSelective(DownloadPO record);

    List<DownloadPO> selectAllDesc();
}